<!DOCTYPE html> 

<html>  
   <head> 
      <meta charset = "utf-8"> 
      <title>scf demo</title> 
   </head> 
  
   <body> 
        <script src="crypto-js.min.js"></script>
        <script>
            function getHeader(){
                var nowDate = new Date();
                var dateTime = nowDate.toUTCString();
                console.log('dateTime='+dateTime);
                var SecretId = '';
                var SecretKey = '';
                var source = 'gifmaker';
                var auth = "hmac id=\"" + SecretId + "\", algorithm=\"hmac-sha1\", headers=\"x-date source\", signature=\"";
                var signStr = "x-date: " + dateTime + "\n" + "source: " + source;
                console.log('auth=', auth);
                console.log('signStr=', signStr);
                var sign = CryptoJS.HmacSHA1(signStr, SecretKey)
                console.log('sign1='+sign);
                sign = CryptoJS.enc.Base64.stringify(sign)
                console.log('sign2='+sign);
                sign = auth + sign + "\""
                console.log('Authorization='+sign);
                var header = {"Source": source , "X-Date": dateTime , "Authorization":sign}
                return header
            }

            const url = "https://service-n6jh85tz-1256376761.sh.apigw.tencentcs.com/release/gifmaker";

            function post(){
                fetch(url,{
                    method: 'POST',
                    body: JSON.stringify({ 'msg': '', 'img': 'iVBORw0KGgoAAAANSUhEUgAAAG0AAABHCAYAAAANz8kGAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABkQSURBVHhe7VtpeJXVuaXtv1u116teFcsQEsJMxDCHIRAmUeZBQCko4lxbRWm12nvb26tWUSqIVlFvtQ/aFlEs4IAMgoKKCBUUBYUqUZkEkioGJcm67/rOWSfv2eeLRAO1KjzPet53v/O319n7fCe2dXoc9V0UHvUddP1+HeTn53+t0bhx7rcCRtp3UqT956/H/kugzrWrj+Dz4E9a3AZ+FYgd9AiqcIS0ryEK/60OhLgN/CoQO+gRVOFwktb2jitj7QdD7KAZWI9Jb+xHWQWAigpsWP1WTMw3FIeNtJmz8dxHJXhmfozvIIgdNMTsEmwr+wcm3Wr6jJ3YcGA/Zt0fxHxT0d3IEuI28EshSdhzS6+L9x8EsYOGWPAP7N2zFz2j9Tt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mzIiwiDjDb2+dkppVOZQ6ub4+7YqRXbZwBpLkX0IyvtMY5IsrUZKJasS1Njujka01tGRth5dUvTi/7+lrKaY6nVLPIpuvpdm1HnH2GNw+444EcUbY1OnTMGjE8LQYgrUIP6vXFcccD/okSRr7kywh9jtN8I1DG2W4MYKGUZ7s1Jkj+Fz5tFaM6vi1r6MafDDpiiFUWzUoZfP5shHMD33h80hWpzOeM8nu5w3jNBdthNa8Lv0po8wgTYOpONe+qPdp7eHjNIDscTWqqyWblyF8vObU2vu9XT5djZqJNuqK1Vqnz9eTTn8IzRHW8TPE1Qr9HvTpu4zgOuOksYkSfJEoOfCpmY+lrE5nfK0/fckTxRhJ1eEm+1yCOnNoV23Zw9qyK4Y+9ZNULGO4Vhwhm68dF6saipFPsfJR13eawHUaaUpUAnUNILt80r1NMRpKa+m0c2Or8wv0+xhPNBE9TDKGuj85ms3H006bt/s49VIMoVrep1z5/ZpgvMiVT/C1PFSLfj+T6omotJOm/ycoERZTQeneF8aEA8muQaIBknavC1z7GrSFax8bZ5fP6+ovcK3+hHooXrrPUw51/0yC8nwdxlFXL+WEcbLzR7Z0SoFE8XuM5FHWzW6E/wfNJzKv5jgfxAAAAABJRU5ErkJggg==' }),
                    headers: getHeader()
                }).then(res => {
                    res.json().then(json => {
                        console.log('imgSecCheck请求成功:', json);
                    });
                }).catch(res => {
                    console.log('imgSecCheck请求失败:',res);
                });
            }
        </script>
        <button onclick="post()">请求</button>
   </body> 
</html> 